package net.lahuobao.mall.service.admin;

import net.lahuobao.mall.entity.admin.MallEtcUserEntity;
import net.lahuobao.mall.exception.CarNoUsedException;
import org.jeecgframework.core.common.service.CommonService;

public interface MallEtcUserServiceI extends CommonService{

    /**
     * 关联用户 修改etc卡状态
     * @param mallEtcUser etc用户
     */
    void saveAndUpdateCardRule(MallEtcUserEntity mallEtcUser) throws CarNoUsedException;

    /**
     * 查询车牌号是否已申请过etc卡
     * @param carNo 车牌号
     * @return 车牌号是否已申请过etc卡
     */
    boolean isCarNoUsed(String carNo);
}
